<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>index</title>
<html xmlns:th="http://www.thymeleaf.org"> 
</head>
<body>

<a href="/logout">logout</a>
	<h1>index</h1>
	<table border="1">
		<thead>
			<tr>
				<td>id</td>
				<td>帐号</td>
				<td>名称</td>
				<td>密码</td>
				<td>加密密码的盐</td>
				<td>用户状态</td>
				<td>操作</td>
			</tr>
		</thead>
		<tbody>
			<tr th:each="user,iterStat : ${users}">
				<th scope="row" th:text="${user.uid}">1</th>
				<td th:text="${user.username}" />
				<td th:text="${user.name}" />
				<td th:text="${user.password}" />
				<td th:text="${user.salt}" />
				<td th:text="${user.state}" />
				<td><a th:href="@{/update(uid=${user.uid})}">修改</a>| <a  th:href="@{/userInfo/userDel(uid=${user.uid})}" >删除</a></td>
			</tr>

		</tbody>
	</table>
</body>
</html>